package cn.wolfcode.luowowo.member.mapper;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserInfoMapper {
    void insert(UserInfo entity);

    /**
     * 检查手机号是否已经存在
     * @param phone
     * @return
     */
    String checkPhone(String phone);

    UserInfo userLogin(@Param("phone") String phone, @Param("password") String password);


    List<UserInfo> selectAll();


    UserInfo selectById(Long userId);

    void updateBaseInfo(UserInfo user);



    void updatePassword(UserInfo user);


    void updateHandImg(UserInfo user);

    void updatePhone(UserInfo user);

    List<String> selectAllPhone();


    UserInfo selectByPhone(String phone);
}
